﻿using MiniFox.Components;
using MiniFox.Platform.Applications.Models;
using MiniFox.Security.Text;
using System;
using System.Collections.Generic;

namespace MiniFox.Platform.Applications.Providers
{
    /// <summary>
    /// 环境数据提供者，主要为指定机构的系统\子系统、应用程序菜单、映射用户权限、应用程序模块\子模块提供数据支持
    /// </summary>
    [AutoRegister]
    public interface IPlatformProvider
    {
        #region organization

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        SystemGlobalConfig GetEnvironmentConfig();
        /// <summary>
        /// 
        /// </summary>
        /// <param name="orgId"></param>
        /// <returns></returns>
        Organization GetOrganization(string orgId);


        #endregion


        /// <summary>
        /// 获取所有模块
        /// </summary>
        /// <returns></returns>
        SystemNavModuleEntry[] GetSystemModules();
    }

}
